package com.mj.Queue;

import com.sun.glass.ui.Size;

/**
 * @Author: LDeng
 * @Date: 2021-02-24 9:45
 */
public class Main {

    public static void main(String[] args) {

//        test01();
//        test02();
//        test03();

        System.out.println(5/3);


    }

    static void test01(){
        Queue<Integer> queue=new Queue<>();
        queue.enQueue(11);
        queue.enQueue(22);
        queue.enQueue(33);
        queue.enQueue(44);

        while (!queue.isEmpty()){
            System.out.println(queue.deQueue());
        }
    }

    static void test02(){
        CircleQueue<Integer> queue=new CircleQueue<Integer>();
        for(int i=0;i<10;i++){
            queue.enQueue(i);
        }

        for(int i=0;i<5;i++){
            queue.deQueue();
        }
        for(int i=15;i<20;i++){
            queue.enQueue(i);
        }

        System.out.println(queue);
        while (!queue.isEmpty()){
            System.out.println(queue.deQueue());
        }
    }

    static void test03(){
        CircleDeque<Integer> queue=new CircleDeque<>();
      //  capacity=22 size=20 front=20,[8,7,6,5,4,3,2,1,100,101,102,103,104,105,106,107,108,109,null,null,10,9]
        for(int i=0;i<10;i++){
            queue.enQueueFront(i+1);
            queue.enQueueRear(i+100);
        }

        for(int i=0;i<3;i++){
            queue.deQueueFront();
            queue.deQueueRear();
        }
    //capacity=22 size=14 front=1,[null,7,6,5,4,3,2,1,100,101,102,103,104,105,106,null,null,null,null,null,null,null]
        queue.enQueueFront(11);
        queue.enQueueFront(12);
    //capacity=22 size=16 front=21,[11,7,6,5,4,3,2,1,100,101,102,103,104,105,106,null,null,null,null,null,null,12]
        System.out.println(queue);
        while (!queue.isEmpty()){
            System.out.println(queue.deQueueFront());
        }
    }

}
